import {BrowserRouter as Router,Route,Switch} from "react-router-dom";
import React from 'react'

import App from "./App"
// import Person from "./pages/person"
// import Depart from "./pages/department";
import Mainpage from "./pages/mainpage";
import Login from "./pages/login";
import Sin from "./pages/s/sin";
import Sli from "./pages/s/sli2"

export default function IRouter() {
    return <Router>

        <Switch>

            {/*<Route  path="/app" component={App}></Route>*/}
            {/*<Route  path="/person" component={Person}></Route>*/}
            {/*<Route  path="/depart" component={Depart}></Route>*/}
            <Route exact={true}  path="/" component={Mainpage}></Route>
            <Route exact={true}  path="/login" component={Login}></Route>
            <Route exact={true}  path="/sin" component={Sin}></Route>
            <Route exact={true}  path="/sli" component={Sli}></Route>


        </Switch>

    </Router>
}